package com.learnyou.server.xingzuo.dto.paramDTO;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class StudentScheduleParam {

    @NotNull(message = "计划id不能为空")
    @ApiModelProperty(value = "课程计划ID")
    private Integer courseScheduleId;
    @NotNull(message = "课时不能为空")
    @ApiModelProperty(value = "总课时")
    private Integer scheduleTotal;

    @ApiModelProperty(value = "修改课时")
    private Integer scheduleCountChange;

    @NotNull(message = "开始时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    private Date startDate;

    @ApiModelProperty(value = "支付金额")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "换课的上一次选课记录id")
    private Integer sourceStudentScheduleId;

    @ApiModelProperty(value = "动作理由")
    private String actionReason;
}
